// Programming_Scala/src/ch13/shapes-drawing-visitor.scala

package shapes {
  class ShapeDrawingVisitor extends ShapeVisitor {
    def visit( circle: Circle ): Unit = println( "Circle.draw: " + circle )
    def visit( rect: Rectangle ): Unit = println( "Rectangle.draw: " + rect )
    def visit( tri: Triangle ): Unit = println( "Triangle.draw: " + tri )
  }
}
